package com.xzj.admin.boot;

import com.xzj.common.core.constants.LogConstants;
import org.slf4j.MDC;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
public class AdminBootApp {
    public static void main(String[] args) {
        if (MDC.get(LogConstants.TRACE_ID) == null) {
            MDC.put(LogConstants.TRACE_ID, "ADMIN-APP-RUN-TRACE-ID");
        }
        SpringApplication.run(AdminBootApp.class,args);
    }
}
